<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title>信息添加</title>
	<load href="__JS__/jQuery/jquery.js" />
    <load href="__JS__/jQuery/jquery.form.js" />
	<load href="__JS__/menu.js" />
	<load href="__JS__/leftmenubar.js" />
	<load href="__CSS__/header.css" />
	<load href="__CSS__/footer.css" />
	<script type="text/JavaScript">
       $(function(){
           $('#form1').ajaxForm({
               //beforeSubmit:  function(){alert("before");},  // pre-submit callback
               success:       complete,  // post-submit callback
               error:function(){alert("error");},
               dataType: 'json'
           });
           
           function complete(data){
               if (data.status==1)
               {
            	   window.location='__URL__/infodetail';
               }else{
                   $('#result').html(data.info).show();
               }
           }
       });
	</script>		
</head>
<body>
<layout name="Auth:header" />
<div class="nowposition">
当前位置：
	<a href='__APP__/index/index' class="nowpositionhref">主页</a>>
	<a href='__URL__/index' class="nowpositionhref">后台管理</a>>
	<a href='__URL__/infodetail' class="nowpositionhref">用户管理</a>>
	<a href="" class="nowpositionhref">添加用户</a>
	</div>
	<layout name="Auth:leftmenu" />
	<div class="infoadd">
	<div id='result' style="position:relative; left:400px; "></div>		
	<div  align="right" style="width:900px;" >	
		<form id='form1' method="post" action="__URL__/infoadd_post" >
				<div style="width:500px;" align="left">
					工号<input type="text" name="no"><br /><br />
					姓名<input type="text" name="name"><br /><br />
					密码<input type="text" name="password"><br/><br /><br /><br />
				</div>
				<div style="width:500px;" align="left">
						权限<select name="role">
							 <volist name='rolelist' id='vo'>
								<option value =	{$vo}>{$vo}</option>
							 </volist>
							</select>
						院系<select name="departmentid">									  
								<volist name='deplist' id='vo'>
								<option value =	{$vo.id}>{$vo.name}</option>
								</volist>
								</select>
								<br /><br /><br /><br />
					</div>
					<div style="width:500px;" align="left">
						<input type="submit" value="添加" style="width:100px; text-align:center; font-size:14px;" >
					</div>
			</form>
			<div id='list'></div>
		</div>
	</div>
</body>
</html>